export interface ILoginRequestData {
  /** admin 或 editor */
  username: string
  /** 密码 */
  password: string
  code: string
  remenber: boolean
}
export type authType = "1" | "2" | "0" | ""

export type LoginCodeResponseData = IApiResponseData<string>
export interface IUserInfoData {
  id: number
  username: string
  password: string
  name: string
  personalPhone: string
  officialPhone: string
  departmentId: number
  authority: authType | ""
  isDel: number
  sex: string
}
export interface IStudentInfoData {
  id: number
  identityCardId: string
  name: string
  sex: string
  authority: authType | ""
  identificationPhotoUrl: string
}

export type LoginResponseData = IApiResponseData<{
  token: string
  user: IUserInfoData
}>

export type UserInfoResponseData = IApiResponseData<{ username: string; roles: string[] }>

export type StudentInfoResponseData = IApiResponseData<{ token: string; user: IStudentInfoData }>
